package com.hdaccp.cloud.controller;

import com.hdaccp.cloud.bean.Users;
import com.hdaccp.cloud.dao.UsersDao;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UsersController {
    @Autowired
    private UsersDao usersDao ;
    @RequestMapping("/query")
    public List<Users> query(){
        return usersDao.query() ;
    }

}
